package com.dyp.mapstructdemo.service.mapper;

import com.dyp.mapstructdemo.domain.Person;
import com.dyp.mapstructdemo.service.dto.PersonDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper(componentModel = "spring", uses = { })
public interface PersonMapper {
    @Mappings({
            @Mapping(source = "local", target = "position")
    })
    PersonDTO toDto (Person person);
}
